package org.jeecg.modules.demo.yxsofeiyongfentan.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.demo.yxsofeiyongfentan.entity.SoFeiyVo;
import org.jeecg.modules.demo.yxsofeiyongfentan.mapper.SoFeiyVoMapper;
import org.jeecg.modules.demo.yxsofeiyongfentan.service.ISoFeiyVoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description: so_feiyong
 * @Author: jeecg-boot
 * @Date:   2022-12-02
 * @Version: V1.0
 */
@Service
public class SoFeiyVoServiceImpl extends ServiceImpl<SoFeiyVoMapper, SoFeiyVo> implements ISoFeiyVoService {
	
	@Autowired
	private SoFeiyVoMapper soFeiyVoMapper;
	
	@Override
	public List<SoFeiyVo> selectByMainId(String mainId) {
		return soFeiyVoMapper.selectByMainId(mainId);
	}

	@Override
	public IPage<SoFeiyVo> getListByFpNo(Page<SoFeiyVo> page, SoFeiyVo soFeiyVo){
		return page.setRecords(soFeiyVoMapper.getListByFpNo(page,soFeiyVo));
	}
}
